package com.yt.lxh.dto.product;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotBlank;

@Data
@ApiModel(description = "更新类别")
public class UpdateCategoryDTO {
    @ApiModelProperty(value = "类别ID", required = true)
    @NotBlank(message = "类别ID不能为空")
    private String id;

    @ApiModelProperty(value = "类别名称", required = true)
    @NotBlank(message = "类别名称不能为空")
    private String categoryName;

    @ApiModelProperty(value = "类别封图文件")
    private MultipartFile file;

    @ApiModelProperty(value = "类别封图旧文件")
    private String oldFileName;

    @ApiModelProperty(value = "类别标签")
    private String categoryMark;

    @ApiModelProperty(value = "类别描述")
    private String description;

    @ApiModelProperty(value = "是否启用:(1:启用,0:停用)")
    private Boolean enable;

    @ApiModelProperty(value = "排序权重")
    private Integer sort;

}
